﻿// This code is released under the BSD license.
namespace PugLib.UnitTest
{
    #region

    using Math;
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    #endregion

    /// <summary>
    ///This is a test class for PugRandomTest and is intended
    ///to contain all PugRandomTest Unit Tests
    ///</summary>
    [TestClass]
    public class PugRandomTest
    {
        /// <summary>
        ///A test for GetRandomInRange
        ///</summary>
        [TestMethod]
        public void GetRandomInRangeTest()
        {
            PugRandom.GetRandomInRange(1, 0);
            PugRandom.GetRandomInRange(int.MaxValue, int.MaxValue);
            PugRandom.GetRandomInRange(int.MinValue, int.MaxValue);

            for (int i = -10; i < 100; i++)
            {
                for (int j = 101; j < 200; j++)
                {
                    PugRandom.GetRandomInRange(i, j);
                }
            }
        }
    }
}